<template>
	<view class="page">
		<NavBar>
			<block slot="left">
				<text class="iconfont icon-fanhui back"></text>
			</block>
			<block slot="title">聊天信息</block>
			<block slot="right">
				<text class="iconfont icon-jia"></text>
			</block>
		</NavBar>
		<view class="body">
			<view class="user-list">
				<view class="item" v-for="item in userList" :key="item.id">
					{{item.name}}
				</view>
			</view>
			<view class="info">
				<view class="row">
					<text class="label">群聊名称</text>
					<text class="value">【拾荒者联盟】<text class="iconfont icon-qianwang"></text></text>
				</view>
				<view class="row">
					<text class="label">备注</text>
					<text class="value">讨论重要问题下午三点半<text class="iconfont icon-qianwang"></text></text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import NavBar from './components/navBar.vue'
	export default {
		components:{
			NavBar
		},
		data() {
			return {
				userList:[{
					id:'1',
					name:'李杰'
				},{
					id:'2',
					name:'刘德华'
				},{
					id:'3',
					name:'黎明'
				},{
					id:'2',
					name:'刘德华'
				},{
					id:'3',
					name:'黎明'
				},{
					id:'2',
					name:'刘德华'
				},{
					id:'3',
					name:'黎明'
				}]
			}
		},
		methods: {
			
		},
		onLoad() {
			
		}
	}
</script>

<style lang="scss">
	.page {
		height: 100vh;
		display: flex;
		font-size:32rpx;
		flex-direction: column;
		background:#f1f1f1;
	}
	.user-list{
		padding:0 30rpx;
		background:#fff;
		// max-height:30vh;
		// overflow-y: auto;
		.item{
			height:90rpx;
		    line-height:90rpx;
			border-bottom:1rpx solid #f1f1f1;
			&:last-child{
				border:none
			}
		}
	}
	.info{
		background:#fff;
		padding:0 30rpx;
		margin-top:15rpx;
		.row{
			height:90rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			border-bottom:1rpx solid #f1f1f1;
			&:last-child{
				border:none;
			}
			.label{
				letter-spacing:3rpx;
			}
			.value{
				color:#999;
				.iconfont{
					margin-left:15rpx;
					font-size: 30rpx;
				}
			}
		}
	}
</style>